package away3d.events ;


import away3d.containers.ObjectContainer3D ;
import flash.events.Event ;



/**
 * @author Paul Tondeur
 */
class Scene3DEvent extends Event 
{
    
    
    public static inline var ADDED_TO_SCENE         : String = "addedToScene" ;
    public static inline var REMOVED_FROM_SCENE     : String = "removedFromScene" ;
    public var objectContainer3D                    : ObjectContainer3D ;
    
    
    public var target( get_target, null ) : Object ;
    
    
    override private function get_target() : Object 
    {
        
        return objectContainer3D ;
        
    }
    
    
    public function new( type : String, objectContainer : ObjectContainer3D )
    {
        
        objectContainer3D = objectContainer ;
        super( type ) ;
        
    }
    
    
    public override function clone() : Event
    {
        
        return new Scene3DEvent( type, objectContainer3D ) ;
        
    }
    
    
}